<template>
    {{ person.id }} -
    {{ person.name }} -  {{ person.age }}
    <button @click="showData">显示数据</button>
</template>

<script lang="ts" setup name="useTypeScritp">
    import {type personInter,type personsList} from '@/types';
    let person:personInter={id:'dfdf',name:'张三', age:18}

    let myList:personsList=[{id:'dfdf',name:'张三', age:18},
                    {id:'dfdf2',name:'张三2', age:10}]


function showData(){
    console.log("person",person.id,person.name,person.age)

    console.log('List0',myList[0])
    console.log('List1',myList[1])


}

</script>